query getPipelineFailedJobsCount($fullPath: ID!, $pipelineIid: ID!) {
  project(fullPath: $fullPath) {
    id
    pipeline(iid: $pipelineIid) {
      id
      active
      jobs(statuses: [FAILED], retried: false, jobKind: BUILD) {
        count
      }
    }
  }
}
